//
//  SDTwoAdvertisingView.h
//  Sydeny
//
//  Created by Rainbow on 7/24/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ImageButton.h"
#import "Shop.h"

@protocol SDAdvertisingViewDelegate;
@interface SDTwoAdvertisingView : UIView {
    
    ImageButton *firstAdButton;
    ImageButton *secondAdButton;
    NSDictionary *advertisings;
    NSOperationQueue *operationQueue;
    id<SDAdvertisingViewDelegate> delegate;
    
    BOOL threeAd;
}


@property (nonatomic, retain)NSDictionary *advertisings;
@property (nonatomic, assign)id<SDAdvertisingViewDelegate> delegate;

-(id)initWithAds:(NSDictionary *)ads;

-(void)updateAds:(NSDictionary *)ads;

-(void)loadComponents;

@end


@protocol SDAdvertisingViewDelegate <NSObject>

-(void)AdvertisingDidSelectedWithShop:(Shop *)shop;

@end
